package com.laowang.project.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 商家优惠券对象 my_cyh_shop_coupon
 *
 * @author laowang
 * @date 2023-07-24
 */
@NoArgsConstructor
@Data
public class MyCyhShopCoupon implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 标题
     */
    @Excel(name = "标题")
    @ApiModelProperty(value = "标题", required = false)
    private String title;

    /**
     * 商家id
     */
    @Excel(name = "商家id")
    @ApiModelProperty(value = "商家id", required = false)
    private Integer shopId;

    @Transient
    private String[] split;


    private String shopName;

    /**
     * 描述
     */
    @Excel(name = "描述")
    @ApiModelProperty(value = "描述", required = false)
    private String desc;

    /**
     * 价格
     */
    @Excel(name = "价格")
    @ApiModelProperty(value = "价格", required = false)
    private BigDecimal price;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间", required = false)
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间", required = false)
    private Date endTime;

    /**
     * 1上架,0下架
     */
    @Excel(name = "1上架,0下架")
    @ApiModelProperty(value = "1上架,0下架", required = false)
    private Integer isUp;

    private Integer number;


}
